www.gusucode.com > VC++网络版的打字软件源程序-源码程序 > VC++网络版的打字软件源程序-源码程序\code\TypeSrv V2.0\ScoreSet.cpp

    //Download by http://www.NewXing.com
// ScoreSet.cpp : implementation file
//

#include "stdafx.h"
#include "typesrv.h"
#include "ScoreSet.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CScoreSet

IMPLEMENT_DYNAMIC(CScoreSet, CRecordset)

CScoreSet::CScoreSet(CDatabase* pdb)
	: CRecordset(pdb)
{
	//{{AFX_FIELD_INIT(CScoreSet)
	m_ScoreID = 0;
	m_ID = _T("");
	m_Name = _T("");
	m_Rate = 0;
	m_Speed = 0;
	m_TestDate = _T("");
	m_QuestionID = 0;
	m_nFields = 7;
	//}}AFX_FIELD_INIT
	m_nDefaultType = dynaset;
}


CString CScoreSet::GetDefaultConnect()
{
	return _T("ODBC;DSN=TypeData");
}

CString CScoreSet::GetDefaultSQL()
{
	return _T("[Score]");
}

void CScoreSet::DoFieldExchange(CFieldExchange* pFX)
{
	//{{AFX_FIELD_MAP(CScoreSet)
	pFX->SetFieldType(CFieldExchange::outputColumn);
	RFX_Long(pFX, _T("[ScoreID]"), m_ScoreID);
	RFX_Text(pFX, _T("[ID]"), m_ID);
	RFX_Text(pFX, _T("[Name]"), m_Name);
	RFX_Int(pFX, _T("[Rate]"), m_Rate);
	RFX_Int(pFX, _T("[Speed]"), m_Speed);
	RFX_Text(pFX, _T("[TestDate]"), m_TestDate);
	RFX_Long(pFX, _T("[QuestionID]"), m_QuestionID);
	//}}AFX_FIELD_MAP
}

/////////////////////////////////////////////////////////////////////////////
// CScoreSet diagnostics

#ifdef _DEBUG
void CScoreSet::AssertValid() const
{
	CRecordset::AssertValid();
}

void CScoreSet::Dump(CDumpContext& dc) const
{
	CRecordset::Dump(dc);
}
#endif //_DEBUG